package com.ineatconseil.yougo.services.rest;

import java.util.ArrayList;
import java.util.List;

/**
 * Technical bean use for REST calls.
 * 
 * @author johanblo
 * 
 */
public class RestPath {

	// The paths...
	public final static String PATH_USERS = "users";
	public final static String PATH_USER_TYPES = "user-types";
	public final static String PATH_REQUESTS = "requests";
	public final static String PATH_REQUEST_TYPES = "request-types";
	public final static String PATH_USERS_DETAIL = "detailed-users";

	/**
	 * The relative path.
	 */
	private String path;

	/**
	 * Parameter.
	 */
	private String value;

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * Default constructor from super class.
	 * 
	 * @param path
	 * @param value
	 */
	public RestPath(String path, String value) {
		super();
		this.path = path;
		this.value = value;
	}

	/**
	 * Get a simple path.
	 * 
	 * @param path
	 * @param value
	 * @return
	 */
	public static List<RestPath> getSimplePath(String path, String value) {

		List<RestPath> paths = new ArrayList<RestPath>();
		paths.add(new RestPath(path, value));

		return paths;
	}

}
